package conson.tech.manage.coupons.feign;

import conson.tech.core.constant.SecurityConstants;
import conson.tech.core.response.Response;
import conson.tech.manage.coupons.feign.dto.UserQueryDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * InterfaceName: UserFeignService
 * Description: 远程访问用户模块
 * Author: XYF
 * Date: 2020/7/23 15:47
 * Version: 1.0
 */
@FeignClient(name = "usercenter", url = "${feignclient.usercenter.domain}")
@RequestMapping(SecurityConstants.INNERAPI)
public interface UserFeignService {


    /**
     * 远程访问用户模块进行用户id和手机号的校验
     *
     * @param userQueryDTO
     * @return conson.tech.core.response.Response
     */
    @PostMapping(value = "/user/query/id")
    Response queryUserIdByMobile(@RequestBody UserQueryDTO userQueryDTO);
}
